]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
notificationDaemon: Unpack button label
authorFlorian Müllner <fmuellner@gnome.org>
Sat, 26 Oct 2013 02:38:42 +0000 (04:38 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Sun, 27 Oct 2013 10:38:36 +0000 (11:38 +0100)
deep_unpack() doesn't unpack as deeply as one might hope ...

https://bugzilla.gnome.org/show_bug.cgi?id=710596

js/ui/notificationDaemon.js

index b886ac3968ed8435351d12ba72c8f5caf2d50a75..928b1a97151563c4ce9c497d2d1587e780899f0c 100644 (file)
@@ -736,7 +736,8 @@ const GtkNotificationDaemonNotification = new Lang.Class({
 
         if (buttons) {
             buttons.deep_unpack().forEach(Lang.bind(this, function(button) {
-                this.addAction(button.label, Lang.bind(this, this._onButtonClicked, button));
+                this.addAction(button.label.unpack(),
+                               Lang.bind(this, this._onButtonClicked, button));
             }));
         }